"""
比较运算符的使用
"""

bool_true = True
bool_false = False

# 定义变量存储布尔运算符, 并查看变量的类型
print(f'bool_true = {bool_true}, type = {type(bool_true)}.')
print(f'bool_true = {bool_false}, type = {type(bool_false)}.')

# 比较运算符的使用
# ==, !=, >, <, >=, <=

value_1 = 10
value_2 = 20
print(f'value_1 == value2: {value_1 == value_2}')
print(f'value_1 != value2: {value_1 != value_2}')
print(f'value_1 < value2: {value_1 < value_2}')
print(f'value_1 > value2: {value_1 > value_2}')
print(f'value_1 >= value2: {value_1 >= value_2}')
print(f'value_1 <= value2: {value_1 <= value_2}')

